﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace QuaManSys.OuterInfo
{
    public partial class OuterQAMainPage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            using (QuaManSysEntities entity = new QuaManSysEntities())
            {
                var ds = from c in entity.OuterQualityInfo
                         where c.processingStatus == "分发"
                         select new { c.qualityInfoId };
                Repeater1.DataSource = ds.ToList();
                Repeater1.DataBind();
                
            }
            
        }

        /// <summary>
        /// 点击外部已提交待分发质量信息链接的相应
        /// </summary>
        protected void hrefDis_Click(object sender, RepeaterCommandEventArgs e)
        {
            string s = e.CommandArgument.ToString();
            Session["qualityId"] = s;
            Response.Redirect("OuterInfoDistribute.aspx");
        }
    }
}